import request from "@/utils/request";

export function createAfterSales(params = {}) {
    return request({
        method: "post",
        url: '/afterSales/createAfterSales',
        params
    })
}

export function getAfterSales(page, size, search = '', userId, status = '') {
    return request({
        method: "get",
        url: '/afterSales/getAfterSales',
        params: {
            page: page,
            size: size,
            search: search,
            userId: userId,
            status: status
        }
    })
}

export function updateAfterSales(params = {}) {
    return request({
        method: "put",
        url: '/afterSales/updateAfterSales',
        params
    })
}

export default {
    updateAfterSales, createAfterSales, getAfterSales
}